GBML manual / Constants

DISTORT_NONE

No distortion: the sprite is drawn at its real width again.

Works differently on Game Boy - The Game Boy narrows a picture by moving its two sprite pieces toward each other on the lines the look names, so the middle of the line is covered instead of squeezed; 16 pixels wide at most, one bent picture at a time.

Works differently on Game Boy Color - The Game Boy Color narrows a picture by moving its two sprite pieces toward each other on the lines the look names, so the middle of the line is covered instead of squeezed; 16 pixels wide at most, one bent picture at a time.

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

DISTORT_NONE: constant

<!-- GENERATED by tools/gbabel_looks.py from its LOOKS registry. Never edit this page: change the registry and re-run it. -->

Description

Names "no distortion", for sprite_distort. Giving it to sprite_distort switches the object's distortion off, and hands back its row-by-row slots and its matrix straight away.

This is how you turn a distortion off. There is nothing to hide or pause: off means the slots and the matrix are free again, and the sprite is drawn the way it always was.

Example

sprite_distort(DISTORT_NONE, 0, 0);

Switches the distortion off. The last two numbers are ignored when the look is NONE.

See also: sprite_distortDISTORT_BULGE